<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__/Admin/css/css.css">
<link href="__PUBLIC__/Admin/css/SimpleCanleder.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/Common/Layer/layer.js"></script>

<style>
.sel{
	height:31px;
	text-align:center;
}
</style>
</head>
<body>

<div class="nav">
	<div class="nav_title">
    	<h4><img class="nav_img" src="__PUBLIC__/Admin/img/tab.gif" /><span class="nav_a">推荐排行榜</span></h4>
    </div>
</div>
<form action="{:U('User/paihangbang')}" method="post">
<div class="search" style="height:50px; line-height:50px; padding-left:30px; margin-top:3px;">
计算方式：<select onchange="showInput()" id='mySelect' class='sel' name="mySelect">
<option value="1">分月计算</option>
<if condition="$mySelect eq 2">
<option value="2" selected>累计计算</option>
<else/>
<option value="2">累计计算</option>
</if>
</select>&nbsp;&nbsp;&nbsp;
<span id='showYYmm'>选择年份月份：<input type="text" name="yymm" value="{$yymm}" placeholder="标准格式：2017-01"  class="input" id="yymm" style="height:28px;" /></span>&nbsp;&nbsp;&nbsp;
排序方式：<select class='sel' name='type'>
<option value="1">推荐合伙人人数</option>
<if condition="$type eq 2">
<option value="2" selected >推荐会员人数</option>
<else/>
<option value="2" >推荐会员人数</option>
</if>
</select>&nbsp;&nbsp;&nbsp;
<!-- 姓名：<input type="text" name="realname" maxlength="16" class="input" style="height:28px;" /> -->
&nbsp;&nbsp;&nbsp;
    <button type="submit" name="submit" class="button">查 询</button>
</div>
</form>
<script>
function showInput(){
	if($("#mySelect").val()==2){
		$("#showYYmm").hide();
	}
	if($("#mySelect").val()==1){
		$("#showYYmm").show();
	}
}
</script>
<div class="list">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
      <thead>
	    <tr>
		  <td width="8%"><div align="center">序号</div></td>
	      <td width="8%"><div align="center">用户ID</div></td>
	      <td width="15%"><div align="center">手机号</div></td>
	      <td width="12%"><div align="center">姓名</div></td>
		  <td width="12%"><div align="center">会员等级</div></td>
	      <td width="15%"><div align="center">推荐合伙人人数</div></td>
	      <td width="10%"><div align="center">推荐会员人数</div></td>
        </tr>
        </thead>
        <tbody>
        <volist name="rows" id="row">
	    <tr>
		   <if condition="$i eq 1">
		   <td><div align="center"><img src="__PUBLIC__/Admin/img/jin-1.png"/></div></td>
		   <elseif condition="$i eq 2"/>
		   <td><div align="center"><img src="__PUBLIC__/Admin/img/yin-2.png"/></div></td>
		   <elseif condition="$i eq 3"/>
		   <td><div align="center"><img src="__PUBLIC__/Admin/img/tong-3.png"/></div></td>
		   <else/>
		   <td><div align="center">{$i}</div></td>
		   </if>
		  
	      <td><div align="center">{$row.member_id}</div></td>
	      <td><div align="center">{$row.mobile}</div></td>
	      <td><div align="center">{$row.realname}</div></td>
		  <td><div align="center">{$row.grade_name}</div></td>
	      <td><div align="center">{$row.svip}</div></td>
	      <td><div align="center">{$row.vip}</div></td>
        </volist>
        </tbody>
  </table>
</div>

<!-- 分页 -->
<div class="page">
{$page}
</div>
<script src="__PUBLIC__/Admin/js/SimpleCanleder.js"></script>
<script>
function getValue(){
var arr=new Array();
arr=$(".input").val().split("-");
$("#yy").val(arr[0]);
$("#mm").val(arr[1]);
$("#myform").submit();
}  
$(".input").simpleCanleder();
</script> 
</body>
</html>
